#include "StdAfx.h"
#include "ControlFrame.h"

ControlFrame::ControlFrame(void)
{
}

ControlFrame::~ControlFrame(void)
{
}


LPCTSTR ControlFrame::GetWindowClassName() const
{
	return _T("TXGuiFoundation");
}

CDuiString ControlFrame::GetSkinFile()
{
	return _T("uisp_control.xml");
}

CDuiString ControlFrame::GetSkinFolder()
{
	return _T("skin\\");
}

void ControlFrame::Notify(TNotifyUI &msg)
{
}

void ControlFrame::InitWindow()
{
	int scnWidth  = GetSystemMetrics(SM_CXSCREEN);
	int width = 200;

	SetWindowPos(*this, NULL, (scnWidth - width) / 2, 0, width, 30, SWP_NOZORDER);

	SetWindowLong(*this, GWL_EXSTYLE, WS_EX_LEFT | WS_EX_LTRREADING | WS_EX_TOOLWINDOW);
}